package com.mellivora.pundit.service.impl;

import com.github.pagehelper.PageInfo;
import com.mellivora.pundit.entity.MiUser;
import com.mellivora.pundit.entity.page.MiUserPage;
import com.mellivora.pundit.mapper.MiUserMapper;
import com.mellivora.pundit.service.MiUserService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;


/**
 * @program: mellivora
 * @description:
 * @author: jin.rao@sunyard.com
 * @create: 2019-03-13 15:32
 **/
public class MiUserServiceImpl implements MiUserService {
    @Autowired
    private MiUserMapper miUserDo;
    @Override
    public int deleteByPrimaryKey(Integer id) {
        return 0;
    }

    @Override
    public int insert(MiUser record) {
        return 0;
    }

    @Override
    public int insertSelective(MiUser record) {
        return 0;
    }

    @Override
    public MiUser selectByPrimaryKey(Integer id) {
        return null;
    }

    @Override
    public int updateByPrimaryKeySelective(MiUser record) {
        return 0;
    }

    @Override
    public int updateByPrimaryKey(MiUser record) {
        return 0;
    }

    @Override
    public PageInfo<MiUser> finAllUser(MiUserPage miUserPage) {
        List<MiUser> miUsers = miUserDo.finUserList(miUserPage.enablePaging());
        PageInfo<MiUser> pageUser = new PageInfo<>(miUsers);
        return pageUser;
    }
}
